85f933da524f20bee54c4b42327a6e6deda5d7bd,alien4cloud-rest-api/src/main/java/alien4cloud/rest/orchestrator/LocationResourcesSecurityController.java,LocationResourcesSecurityController,getAuthorizedUsers,#String#String#String#,186
Before Change
@PreAuthorize("hasAuthority('ADMIN')")
public RestResponse<List<User>> getAuthorizedUsers(@PathVariable String orchestratorId, @PathVariable String locationId, @PathVariable String resourceId) {
LocationResourceTemplate resourceTemplate = locationResourceService.getOrFail(resourceId);
return RestResponseBuilder.<List<User>> builder().data(resourcePermissionService.getAuthorizedUsers(resourceTemplate)).build();
}
}
After Change
@PreAuthorize("hasAuthority('ADMIN')")
public RestResponse<List<UserDTO>> getAuthorizedUsers(@PathVariable String orchestratorId, @PathVariable String locationId, @PathVariable String resourceId) {
LocationResourceTemplate resourceTemplate = locationResourceService.getOrFail(resourceId);
List<UserDTO> users = LocationSecurityController.convertListUserToListUserDTO(resourcePermissionService.getAuthorizedUsers(resourceTemplate));
return RestResponseBuilder.<List<UserDTO>> builder().data(users).build(); }
/*******************************************************************************************************************************